package com.dnjn.happiness.survey.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.annotation.Excel;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 区间信息对象 svy_survey_interval_score
 * 
 * @author happiness
 * @date 2023-11-16
 */
@Schema(name = "SurveyIntervalScore", description = "区间信息")
@Accessors(chain = true)
@Getter
@Setter
@TableName("svy_survey_interval_score")
public class SurveyIntervalScore extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "survey_interval_score_id", type = IdType.ASSIGN_ID)
    private Long surveyIntervalScoreId;


    


    /** 问卷Id */
    @Schema(description = "问卷Id")
    @Excel(name = "问卷Id")
    private Long surveyId;

    /** 区间开始值 */
    @Schema(description = "区间开始值")
    @Excel(name = "区间开始值")
    private Integer startScore;

    /** 区间结束值 */
    @Schema(description = "区间结束值")
    @Excel(name = "区间结束值")
    private Integer endScore;

    /** 结果 */
    @Schema(description = "结果")
    @Excel(name = "结果")
    private String result;

    /** 区间等级 */
    @Schema(description = "区间等级")
    @Excel(name = "区间等级")
    private Integer grade;

    private String deleted;




    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("surveyIntervalScoreId", getSurveyIntervalScoreId())
            .append("surveyId", getSurveyId())
            .append("startScore", getStartScore())
            .append("endScore", getEndScore())
            .append("result", getResult())
            .append("grade", getGrade())
            .toString();
    }
}
